package com.aptemo.webetek.client.widgets.mocks;

import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.event.shared.HandlerRegistration;

public class MockHasClickHandlers implements HasClickHandlers {

	public ClickHandler lastClickHandler;

	@Override
	public HandlerRegistration addClickHandler(ClickHandler handler) {

		lastClickHandler = handler;

		return new HandlerRegistration() {

			@Override
			public void removeHandler() {
			}
		};
	}

	@Override
	public void fireEvent(GwtEvent<?> event) {

	}

}
